package com.hnec.dms.log.operation;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户操作日志
 *
 * @Author: liwq
 * @Author: hidebug
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OpLogForm {

    /**
     * 操作名称
     */
    @NotNull
    @Size(max = 64)
    private String action;

    /**
     * 业务模块
     */
    @NotNull
    @Size(max = 64)
    private String module;

    /**
     * 开始时间(毫秒)
     */
    @NotNull
    private Long startTime;

    /**
     * 结束时间(毫秒)
     */
    @NotNull
    private Long endTime;

    /**
     * 执行前的值
     */
    private Object valueBefore;

    /**
     * 执行后的值
     */
    private Object valueAfter;


}

